package com.zfskkk.democonfigclient;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author zhangfoshou
 * @date 2019/3/12 22:25
 */
@RequestMapping("/")
@ResponseBody
@Controller
public class HelloController {
    @Value("${foo}")
    String foo;

    @RequestMapping(value = "/hi")
    public String hi() {
        return foo;
    }
}
